package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "device")
@ApiModel(description = "设备表")
public class Device implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "设备编号")
    private Integer id;

    @TableField(value = "floor_name")
    @ApiModelProperty(value = "楼宇名称")
    private String floorName;

    @ApiModelProperty(value = "所在楼层")
    private String storey;

    @ApiModelProperty(value = "设备名称")
    private String name;

    @ApiModelProperty(value = "设备状态")
    private Integer state;

    @ApiModelProperty(value = "设备端口")
    private String port;

    @ApiModelProperty(value = "ip地址")
    private String ip;

    @ApiModelProperty(value = "url请求")
    private String url;

    @TableField(value = "group_id")
    @ApiModelProperty(value = "设备分组")
    private Integer groupId;

    @TableField(value = "policy_id")
    @ApiModelProperty(value = "策略")
    private Integer policyId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "逻辑删除（1：已删除 0：未删除）")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "备用2")
    private String by2;

}
